#include <iostream>
#include <string>
#include <fstream>

using namespace std;

int main(int argc, char* argv[]) {

	char* applicationStream = argv[1];
	ofstream file("open.txt");
	file << applicationStream << endl;
	file.close();
	cout << applicationStream;
	return 0;
}